// pages/find/strate/strate.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    strateList:["旅游策略","酒店策略","掌中问答"],
    current:0,
  },
  changeSwiper(e){
    let index = e.currentTarget.dataset.index;
    this.setData({ current: index, scrollTop:0})
  },
  whenSwiper(e){
    let index = e.detail.current;
    this.setData({ current: index, scrollTop:0})
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.getSys();
  },
  // 获取系统信息
  getSys(){
    wx.getSystemInfo({
      success: (res)=>{
        console.log(res);
        this.setData({ pageHeight: (res.windowHeight - 90)*2})
        console.log(this.data.pageHeight)
      },
    })
  }

})